<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableCode extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('code', function(Blueprint $table)
        {
            $table->increments('id')->comment('自增长');
            $table->string('mobile')->comment('手机号，接受验证码手机。');
            $table->string('code')->comment('验证码');
            $table->unsignedInteger('time')->comment('接收时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('code');
    }
}
